﻿<!-- __ROOT__<br> 会替换成当前网站的地址（不含域名）
__APP__<br> 会替换成当前应用的URL地址 （不含域名）
__MODULE__<br>会替换成当前模块的URL地址（不含域名）
__CONTROLLER__<br>（__或者__URL__ 兼容考虑） 会替换成当前控制器的URL地址（不含域名）
__ACTION__<br>会替换成当前操作的URL地址 （不含域名）
__SELF__<br> 会替换成当前的页面URL
__PUBLIC__<br>会被替换成当前网站的公共目录 通常是 /Public/
__ADMIN__<br> 自定义常量:后台
__HOME__<br> 自定义常量；前台 -->

<!--依次输出：
 /myshop
/myshop/index.php
/myshop/index.php/Admin
/myshop/index.php/Admin/Index
/myshop/index.php/Admin/Index/index
/myshop/index.php/admin/index/index
/myshop/Public
Public/Admin
Public/Admin
Public/Home
-->



<!DOCTYPE html>
<html lang="en">

	<head>

		<!-- Basic -->
    	<meta charset="UTF-8" />

		<title>Dashboard | Nadhif - Responsive Admin Template</title>

		<!-- Mobile Metas -->
	    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

		<!-- Import google fonts -->
        <!-- <link href="http://fonts.useso.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css" /> -->

		<!-- Favicon and touch icons -->
		<link rel="shortcut icon" href="__ADMIN__assets/ico/favicon.ico" type="image/x-icon" />
		<link rel="apple-touch-icon" href="__ADMIN__assets/ico/apple-touch-icon.png" />
		<link rel="apple-touch-icon" sizes="57x57" href="__ADMIN__assets/ico/apple-touch-icon-57x57.png" />
		<link rel="apple-touch-icon" sizes="72x72" href="__ADMIN__assets/ico/apple-touch-icon-72x72.png" />
		<link rel="apple-touch-icon" sizes="76x76" href="__ADMIN__assets/ico/apple-touch-icon-76x76.png" />
		<link rel="apple-touch-icon" sizes="114x114" href="__ADMIN__assets/ico/apple-touch-icon-114x114.png" />
		<link rel="apple-touch-icon" sizes="120x120" href="__ADMIN__assets/ico/apple-touch-icon-120x120.png" />
		<link rel="apple-touch-icon" sizes="144x144" href="__ADMIN__assets/ico/apple-touch-icon-144x144.png" />
		<link rel="apple-touch-icon" sizes="152x152" href="__ADMIN__assets/ico/apple-touch-icon-152x152.png" />

	    <!-- start: CSS file-->

		<!-- Vendor CSS-->
		<link href="__ADMIN__assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
		<link href="__ADMIN__assets/vendor/skycons/css/skycons.css" rel="stylesheet" />
		<link href="__ADMIN__assets/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" />

		<!-- Plugins CSS-->
		<link href="__ADMIN__assets/plugins/bootkit/css/bootkit.css" rel="stylesheet" />
		<link href="__ADMIN__assets/plugins/scrollbar/css/mCustomScrollbar.css" rel="stylesheet" />
		<link href="__ADMIN__assets/plugins/fullcalendar/css/fullcalendar.css" rel="stylesheet" />
		<link href="__ADMIN__assets/plugins/jquery-ui/css/jquery-ui-1.10.4.min.css" rel="stylesheet" />
		<link href="__ADMIN__assets/plugins/xcharts/css/xcharts.min.css" rel="stylesheet" />
		<link href="__ADMIN__assets/plugins/morris/css/morris.css" rel="stylesheet" />

		<!-- Theme CSS -->
		<link href="__ADMIN__assets/css/jquery.mmenu.css" rel="stylesheet" />

		<!-- Page CSS -->
		<link href="__ADMIN__assets/css/style.css" rel="stylesheet" />
		<link href="__ADMIN__assets/css/add-ons.min.css" rel="stylesheet" />

		<!-- end: CSS file-->

		<!-- 商品相册上传 -->
		<link href="__ADMIN__assets/plugins/dropzone/css/dropzone.css" rel="stylesheet" />
		<script src="__ADMIN__assets/js/pages/form-dropzone.js"></script>
		<script src="__ADMIN__assets/plugins/dropzone/js/dropzone.min.js"></script>

		<!-- Head Libs -->
		<script src="__ADMIN__assets/plugins/modernizr/js/modernizr.js"></script>

		<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		<!--[if lt IE 9]>
			<script src="http://apps.bdimg.com/libs/html5shiv/3.7/html5shiv.min.js"></script>
			<script src="http://apps.bdimg.com/libs/respond.js/1.4.2/respond.js"></script>
		<![endif]-->


		<!-- 头部区块 -->
		<block name="top"></block>
		<style type="text/css">
			.error{color:red;}/* 添加页面校验的错误提示的样式 */
		</style>

	</head>

	<body>

		<!-- Start: Header -->
		<div class="navbar" role="navigation">
			<div class="container-fluid container-nav">
				<!-- Navbar Action -->
				<ul class="nav navbar-nav navbar-actions navbar-left">
					<li class="visible-md visible-lg"><a href="index.html#" id="main-menu-toggle"><i class="fa fa-th-large"></i></a></li>
					<li class="visible-xs visible-sm"><a href="index.html#" id="sidebar-menu"><i class="fa fa-navicon"></i></a></li>
				</ul>
				<!-- Navbar Left -->
				<div class="navbar-left">
					<!-- Search Form -->
					<form class="search navbar-form">
						<div class="input-group input-search">
							<input type="text" class="form-control" name="q" id="q" placeholder="Search...">
							<span class="input-group-btn">
								<button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button>
							</span>
						</div>
					</form>
				</div>
				<!-- Navbar Right -->
				<div class="navbar-right">
					<!-- Notifications -->
					<ul class="notifications hidden-sm hidden-xs">
						<li>
							<a href="#" class="dropdown-toggle notification-icon" data-toggle="dropdown">
								<i class="fa fa-tasks"></i>
								<span class="badge">10</span>
							</a>
							<ul class="dropdown-menu update-menu" role="menu">
								<li><a href="#"><i class="fa fa-database bk-fg-primary"></i> Database </a></li>
								<li><a href="#"><i class="fa fa-bar-chart-o bk-fg-primary"></i> Connection </a></li>
								<li><a href="#"><i class="fa fa-bell bk-fg-primary"></i> Notification </a></li>
								<li><a href="#"><i class="fa fa-envelope bk-fg-primary"></i> Message </a></li>
								<li><a href="#"><i class="fa fa-flash bk-fg-primary"></i> Traffic </a></li>
								<li><a href="#"><i class="fa fa-credit-card bk-fg-primary"></i> Invoices </a></li>
								<li><a href="#"><i class="fa fa-dollar bk-fg-primary"></i> Finances </a></li>
								<li><a href="#"><i class="fa fa-thumbs-o-up bk-fg-primary"></i> Orders </a></li>
								<li><a href="#"><i class="fa fa-folder bk-fg-primary"></i> Directories </a></li>
								<li><a href="#"><i class="fa fa-users bk-fg-primary"></i> Users </a></li>
							</ul>
						</li>
						<li>
							<a href="#" class="dropdown-toggle notification-icon" data-toggle="dropdown">
								<i class="fa fa-envelope"></i>
								<span class="badge">5</span>
							</a>
							<ul class="dropdown-menu">
								<li class="dropdown-menu-header">
									<strong>Messages</strong>
									<div class="progress progress-xs  progress-striped active">
										<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
											60%
										</div>
									</div>
								</li>
								<li class="avatar">
									<a href="page-inbox.html">
										<img class="avatar" src="__ADMIN__assets/img/avatar1.jpg" alt="" />
										<div><div class="point point-primary point-lg"></div>New message</div>
										<span><small>1 minute ago</small></span>
									</a>
								</li>
								<li class="avatar">
									<a href="page-inbox.html">
										<img class="avatar" src="__ADMIN__assets/img/avatar2.jpg" alt="" />
										<div><div class="point point-primary point-lg"></div>New message</div>
										<span><small>3 minute ago</small></span>
									</a>
								</li>
								<li class="avatar">
									<a href="page-inbox.html">
										<img class="avatar" src="__ADMIN__assets/img/avatar3.jpg" alt="" />
										<div><div class="point point-primary point-lg"></div>New message</div>
										<span><small>4 minute ago</small></span>
									</a>
								</li>
								<li class="avatar">
									<a href="page-inbox.html">
										<img class="avatar" src="__ADMIN__assets/img/avatar4.jpg" alt="" />
										<div><div class="point point-primary point-lg"></div>New message</div>
										<span><small>30 minute ago</small></span>
									</a>
								</li>
								<li class="avatar">
									<a href="page-inbox.html">
										<img class="avatar" src="__ADMIN__assets/img/avatar5.jpg" alt="" />
										<div><div class="point point-primary point-lg"></div>New message</div>
										<span><small>1 hours ago</small></span>
									</a>
								</li>
								<li class="dropdown-menu-footer text-center">
									<a href="page-inbox.html">View all messages</a>
								</li>
							</ul>
						</li>
						<li>
							<a href="#" class="dropdown-toggle notification-icon" data-toggle="dropdown">
								<i class="fa fa-bell"></i>
								<span class="badge">3</span>
							</a>
							<ul class="dropdown-menu list-group">
								<li class="dropdown-menu-header">
									<strong>Notifications</strong>
									<div class="progress progress-xs  progress-striped active">
										<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
											60%
										</div>
									</div>
								</li>
								<li class="list-item">
									<a href="page-inbox.html">
										<div class="pull-left">
										   <i class="fa fa-envelope-o bk-fg-primary"></i>
										</div>
										<div class="media-body clearfix">
											<div>Unread Message</div>
											<h6>You have 10 unread message</h6>
										</div>
									</a>
								</li>
								<li class="list-item">
									<a href="#">
										<div class="pull-left">
										   <i class="fa fa-cogs bk-fg-primary"></i>
										</div>
										<div class="media-body clearfix">
											<div>New Settings</div>
											<h6>There are new settings available</h6>
										</div>
									</a>
								</li>
								<li class="list-item">
									<a href="#">
										<div class="pull-left">
										   <i class="fa fa-fire bk-fg-primary"></i>
										</div>
										<div class="media-body clearfix">
											<div>Update</div>
											<h6>There are new updates available</h6>
										</div>
									</a>
								</li>
								<li class="list-item-last">
									<a href="#">
									  <h6>Unread notifications</h6>
									  <span class="badge">15</span>
								   </a>
								</li>
							</ul>
						</li>
					</ul>
					<!-- End Notifications -->
					<!-- Userbox -->
					<div class="userbox">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<div class="profile-info">
								<span class="name">{$_SESSION['admin_user']['realname']}</span>
								<span class="role">Developer</span>
							</div>
							<i class="fa custom-caret"></i>
						</a>
						<div class="dropdown-menu">
							<ul class="list-unstyled">
								<li class="dropdown-menu-header bk-bg-white bk-margin-top-15">
									<div class="progress progress-xs  progress-striped active">
										<div class="progress-bar progress-bar-primary" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
											60%
										</div>
									</div>
								</li>
								<li>
									<a href="page-profile.html"><i class="fa fa-user"></i> Profile</a>
								</li>
								<li>
									<a href="#"><i class="fa fa-wrench"></i> Settings</a>
								</li>
								<li>
									<a href="page-invoice"><i class="fa fa-usd"></i> Payments</a>
								</li>
								<li>
									<a href="#"><i class="fa fa-file"></i> File</a>
								</li>
								<li>
									<a href="page-login.html"><i class="fa fa-power-off"></i> Logout</a>
								</li>
							</ul>
						</div>
					</div>
					<!-- End Userbox -->
				</div>
				<!-- End Navbar Right -->
			</div>
		</div>
		<!-- End: Header -->
		<div class="copyrights">Collect from <a href="http://www.cssmoban.com/" >企业网站模板</a></div>
		<!-- Start: Content -->
		<div class="container-fluid content">
			<div class="row">

				<!-- Sidebar -->
				<div class="sidebar">
					<div class="sidebar-collapse">
						<!-- Sidebar Header Logo-->
						<div class="sidebar-header">
							<img src="__ADMIN__assets/img/logo.png" class="img-responsive" alt="" />
						</div>
						<!-- Sidebar Menu-->
						<div class="sidebar-menu">
							<nav id="menu" class="nav-main" role="navigation">
								<ul class="nav nav-sidebar">
									<div class="panel-body text-center">
										<div class="bk-avatar"><!-- src="__ADMIN__assets/img/avatar.jpg" -->
											<img src="__ADMIN__assets/img/avatar.jpg" class="img-circle bk-img-60" alt="" />
										</div>
										<div class="bk-padding-top-10">
											<i class="fa fa-circle text-success"></i> <small>Administrator</small>
										</div>
									</div>
									<div class="divider2"></div>
									<li class="active">
										<a href="{:U('index/index')}">
											<i class="fa fa-laptop" aria-hidden="true"></i><span>系统首页</span>
										</a>
									</li>
									<!-- 循环顶级数据 ||$_SESSION['admin_user']['group_access'][0]=='true'-->
									<foreach name="top_nav" item="v">
										<php>
											if(in_array($v['id'],$_SESSION['admin_user']['group_access'])){
										</php>
									<li class="nav-parent">
										<a>
											<i class="fa {$v.icon}" aria-hidden="true"></i><span>{$v.title}</span>
										</a>
										<ul class="nav nav-children">
											<!-- 循环子级 ||$_SESSION['admin_user']['group_access'][0]=='true'-->
											<foreach name="child_nav" item="vo">
											<php>
											if(in_array($vo['id'],$_SESSION['admin_user']['group_access'])){
											</php>
												<eq name="v['id']" value="$vo['pid']">
											<li>
												<a href="{:U($vo['name'])}"><!-- 导航的路径 -->
												<i class="fa {$vo.icon}" aria-hidden="true"></i>
												<span class="text">{$vo.title}</span></a>
											</li>
												</eq>
											<php>}</php>
											</foreach>
										</ul>
									</li>
									<php>}</php>
									</foreach>
								</ul>
							</nav>
						</div>
						<!-- End Sidebar Menu-->
					</div>
					<!-- Sidebar Footer-->
					<div class="sidebar-footer">

					</div>
					<!-- End Sidebar Footer-->
				</div>
				<!-- End Sidebar -->

				<!-- Main Page -->
				<div class="main ">
					<!-- Page Header -->
					<div class="page-header">
						<div class="pull-left">
							<ol class="breadcrumb visible-sm visible-md visible-lg">
								<li><a href="index.html"><i class="icon fa fa-home"></i>Home</a></li>
								<li class="active"><i class="fa fa-laptop"></i>Dashboard</li>
							</ol>
						</div>
						<div class="pull-right">
							<h2>Dashboard</h2>
						</div>
					</div>


				<!-- 可变内容区域代码部分 -->
			<block name="mid"></block>

				</div>
				<!-- End Main Page -->


			</div>
		</div><!--/container-->


		<!-- Modal Dialog -->
		<div class="modal fade" id="myModal">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
						<h4 class="modal-title bk-fg-primary">Modal title</h4>
					</div>
					<div class="modal-body">
						<p class="bk-fg-danger">Here settings can be configured...</p>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
						<button type="button" class="btn btn-primary">Save changes</button>
					</div>
				</div>
			</div>
		</div><!-- End Modal Dialog -->

		<div class="clearfix"></div>


		<!-- start: JavaScript-->

		<!-- Vendor JS-->

		<script src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
		<script src="__ADMIN__assets/vendor/js/jquery-migrate-1.2.1.min.js"></script>
		<script src="__ADMIN__assets/vendor/bootstrap/js/bootstrap.min.js"></script>
		<script src="__ADMIN__assets/vendor/skycons/js/skycons.js"></script>

		<!-- Plugins JS-->
		<script src="__ADMIN__assets/plugins/jquery-ui/js/jquery-ui-1.10.4.min.js"></script>
		<script src="__ADMIN__assets/plugins/scrollbar/js/jquery.mCustomScrollbar.concat.min.js"></script>
		<script src="__ADMIN__assets/plugins/bootkit/js/bootkit.js"></script>
		<script src="__ADMIN__assets/plugins/moment/js/moment.min.js"></script>
		<script src="__ADMIN__assets/plugins/fullcalendar/js/fullcalendar.min.js"></script>
		<script src="__ADMIN__assets/plugins/touchpunch/js/jquery.ui.touch-punch.min.js"></script>
		<script src="__ADMIN__assets/plugins/flot/js/jquery.flot.min.js"></script>
		<script src="__ADMIN__assets/plugins/flot/js/jquery.flot.pie.min.js"></script>
		<script src="__ADMIN__assets/plugins/flot/js/jquery.flot.resize.min.js"></script>
		<script src="__ADMIN__assets/plugins/flot/js/jquery.flot.stack.min.js"></script>
		<script src="__ADMIN__assets/plugins/flot/js/jquery.flot.time.min.js"></script>
		<script src="__ADMIN__assets/plugins/xcharts/js/xcharts.min.js"></script>
		<script src="__ADMIN__assets/plugins/autosize/jquery.autosize.min.js"></script>
		<script src="__ADMIN__assets/plugins/placeholder/js/jquery.placeholder.min.js"></script>
		<script src="__ADMIN__assets/plugins/datatables/js/dataTables.bootstrap.min.js"></script>
		<script src="__ADMIN__assets/plugins/datatables/js/jquery.dataTables.min.js"></script>
		<script src="__ADMIN__assets/plugins/raphael/js/raphael.min.js"></script>
		<script src="__ADMIN__assets/plugins/morris/js/morris.min.js"></script>
		<script src="__ADMIN__assets/plugins/gauge/js/gauge.min.js"></script>
		<script src="__ADMIN__assets/plugins/d3/js/d3.min.js"></script>
		<!--<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>  delete by templatesy.com (because of google)-->

		<!-- Theme JS -->
		<script src="__ADMIN__assets/js/jquery.mmenu.min.js"></script>
		<script src="__ADMIN__assets/js/core.min.js"></script>

		<!-- Pages JS -->
		<script src="__ADMIN__assets/js/pages/index.js"></script>

		<!-- end: JavaScript-->
	<!-- 尾部区块 -->
		<!-- <block name="footer"></block> -->
	</body>

</html>
<!-- js区块 -->
<block name="js"></block>